import request from "@/utils/request";

// 查询素材信息管理列表
export function listMatterManage(query) {
  return request({
    url: "/business/matterManage/list",
    method: "get",
    params: query,
  });
}

// 查询素材信息管理详细
export function getMatterManage(id) {
  return request({
    url: "/business/matterManage/" + id,
    method: "get",
  });
}

// 查询按钮数据 /business/matterManage/buttonDataList/{id}

export function buttonDataListApi(id) {
  return request({
    url: "/business/matterManage/buttonDataList/" + id,
    method: "get",
  });
}

// 新增素材信息管理
export function addMatterManage(data) {
  return request({
    url: "/business/matterManage",
    method: "post",
    data: data,
  });
}

// 修改素材信息管理
export function updateMatterManage(data) {
  return request({
    url: "/business/matterManage",
    method: "put",
    data: data,
  });
}

// 删除素材信息管理
export function delMatterManage(id) {
  return request({
    url: "/business/matterManage/" + id,
    method: "delete",
  });
}
